package com.linzm.behavioraltype.strategy10;

import com.linzm.behavioraltype.strategy10.strategy.Strategy;

/**
 * @Author zimingl
 * @Date 2023/4/16 13:46
 * @Description: Context
 */
public class Context {
    private Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    public int executeStrategy(int num1, int num2) {
        return strategy.doOperation(num1, num2);
    }
}
